package com.woniuxy.cinmea.management.controller;

import com.woniuxy.cinmea.management.entity.Store;
import com.woniuxy.cinmea.management.service.StoreService;
import com.woniuxy.config.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("store")
@RestController
public class CinemaManagementController {
    @Autowired
    private StoreService storeService;

    @PostMapping("add")
    public ResponseResult<Void> add(@RequestBody Store store){
        storeService.add(store);
        return ResponseResult.SUCCUESS;
    }
}
